package com.agileboot.admin.controller.common;

import com.qiniu.util.Auth;

public class QiniuService {
    private String accessKey = "cc6H4JUuvyUEyIoOztvb7zVVWnTFuqekRLzHqxr4";
    private String secretKey = "fbGlgsTKUzSNcCGwqCUbu8ptSbaqt5w4M3ffh6eI";
    private String bucket = "cafuc-pyb";

    public String getUploadToken() {
        Auth auth = Auth.create(accessKey, secretKey);
        return auth.uploadToken(bucket);
    }
}
